<ion-view view-title="我收到的挑战信">
    <ion-content>
        <ion-refresher pulling-text="刷新" on-refresh="moreInbox()">
        </ion-refresher>
        <div class="list card battle-item" ng-repeat="letter in inboxLetters">
            <div class="item item-divider">
                <b style="margin-right: 6px;color:#e05151;"><span ng-bind="letter.sender.name"></span></b><span>向我发来的挑战</span></div>
            <div class="item item-body">
                <label class="item item-input">
                    <span class="input-label text-right" style="width: 80px;">内容:</span>
                    <span ng-bind="letter.text"></span>
                </label>
                <label class="item item-input">
                    <span class="input-label text-right" style="width: 80px;">收到时间:</span>
                    <span ng-bind="letter.time | shijian"></span>
                </label>
                <label class="item item-input" ng-show="letter.store">
                    <span class="input-label text-right" style="width: 80px;">挑战题库:</span>
                    <span ng-bind="letter.store.text"></span>
                </label>

                <div class="battle-bar">
                    <a class="button-royal" ng-click="deleteLetter(letter._id)">删除</a>
                    <a class="button-positive" ng-show="letter.store" ng-click="joinBattle(letter.store._id, letter._id)">应战</a>
                </div>
            </div>
        </div>
        <!--
        <div class="text-center" style="margin-top:15px;">
            <a ng-show="inboxShowMore" ng-click="moreInbox()">更多</a>
        </div>
        -->
    </ion-content>
</ion-view>
